package com.mabang.medata.dao;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.mabang.medata.commons.CoverInsuranceVo;
import com.mabang.medata.model.CoverInsurance;
import com.mabang.medata.model.CoverInsurancePolicy;

public interface CoverInsuranceMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CoverInsurance record);

    int insertSelective(CoverInsurance record);

    CoverInsurance selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CoverInsurance record);

    int updateByPrimaryKey(CoverInsurance record);
    
    CoverInsuranceVo selectByCoverInsuranceCode(String code);
    
    CoverInsurancePolicy getPolicyNmberAndIDByCode(String code);
    
    int updatePolicyNmberByCoverInsuranceCode(@Param("date") Date date,@Param("code")String code,@Param("billNo")String billNo);
}